/*
 注册量查询
 2017-11-3
 * */
$(function(){
		 var urlApi = 'https://jindi163.com:8443/JDLot/admin/lotnum/add';
		var phone=sessionStorage.getItem("phone");
//	 isshows()
	 var times=setInterval(isshows(),10000)
	 function isshows(){
	 	console.log(phone)
	 	$.ajax({
	 		url:urlApi,
	 		type:"post",
	 		
            data:{
//				"phone":phone
            },
            dataType:'json',
            contentType:"application/json",
            async:true,
            cache:false,
            xhrFields: {
   						 withCredentials: true
						},
					crossDomain: true,
            success:function(res){
            	console.log(res)
            	var data=res.datas;
            	console.log(data)
            	var one1=data[0];
            	var one2=data[1];
            	var one3=data[2];
            	var one4=data[3];
            	var one5=data[4];
            	$(".zhuceliang").empty();
            	var html='<li>'+
							'<span>今日注册量</span>'+
							'<span>昨日注册量</span>'+
							'<span>本周注册量</span>'+
							'<span>本月注册量</span>'+
							'<span>今年注册量</span>'+
						'</li>';
					 html+='<li>'+
							'<span>'+one1+'</span>'+
							'<span>'+one2+'</span>'+
							'<span>'+one3+'</span>'+
							'<span>'+one4+'</span>'+
							'<span>'+one5+'</span>'+
							'</li>';
						$(".zhuceliang").append(html);
						
            	
            }
	 	})
	 }
})
